@extends('base')
@section('content')
    <div class="pro_banner">
        <img src="{{url('/image/probanner1.jpg')}}"/>
    </div>
    <div class="bg_wh overflow">
        <div class="w1160">
            <ul class="service_box">
                <li class="servicetu1">
                    <a href="{{url('/servicevedio')}}">
                        <i></i>
                        <strong>操作视频</strong>
                        <span>Operation video</span>
                    </a>
                </li>
                <li class="servicetu2 on">
                    <a href="{{url('/servicesupport')}}">
                        <i></i>
                        <strong>产品说明书</strong>
                        <span>Products instructions</span>
                    </a>
                </li>
                <li class="servicetu3">
                    <a href="{{url('/serviceaq')}}">
                        <i></i>
                        <strong>常见问题</strong>
                        <span>common problems</span>
                    </a>
                </li>
                <li class="servicetu4">
                    <a href="#">
                        <i></i>
                        <strong>开放平台</strong>
                        <span>Open platform</span>
                    </a>
                </li>
            </ul>

            <div id="service_pro" class="service_pro">
                <div id="service_pro-tit" class="service_pro-tit">
                    <ul>
                        <li class="select"><a href="javascript:;" data-title="hardWare">硬件功能</a></li>
                        <li><a href="javascript:;" data-title="softWare">软件功能</a></li>
                    </ul>
                </div>
                <div id="service_pro-con" class="service_pro-con">
                    <div class="mod hardWare" style="display:block;height: 675px;overflow: auto;">
                        <ul class="problom_box">
                            <li>
                                <a href="#">
                                    <ul class="authorize">
                                        @foreach($hardWareAqs as $hardWareAq)
                                            <li class="question_lf" style="float: left;">
                                                <div class="question_one">

                                                    <ul class="question">
                                                        <p>Q:</p>  <li style="margin: 0;">{{$hardWareAq->name}}？</li>
                                                        <li style="height:100px;">{{json_decode($hardWareAq->content)->description}}</li>
                                                    </ul>
                                                </div>
                                            </li>
                                        @endforeach
                                    </ul>
                                </a>
                            </li>
                        </ul>
                    </div>
                    <div class="mod softWare" style="display:none;height: 675px;overflow: auto;">
                        <ul class="problom_box">
                            <li>
                                <a href="#">
                                    <ul class="authorize">
                                        @foreach($softWareAqs as $softWareAq)
                                            <li class="question_lf" style="float: left;">
                                                <div class="question_one">
                                                 {{--把q换到问题下面--}}
                                                    <ul class="question">
                                                        <p>Q:</p>  <li style="margin: 0;">{{$softWareAq->name}}？</li>
                                                        <li style="height:100px;">{{json_decode($softWareAq->content)->description}}</li>
                                                    </ul>
                                                </div>
                                            </li>
                                        @endforeach
                                    </ul>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>

        </div>
    </div>
    <div class="bg_f6f7 overflow">
        <ul class="index_major">
            <li>专业<span>我们只做手机开门</span></li>
            <li class="borderlfdadc">安全<span>电子钥匙不可复制开门记录可查</span></li>
            <li class="borderlfdadc">无限制<span>APP用户数量不受限制成本低</span></li>
            <li class="borderlfdadc">免费<span>APP专属页面免费定制</span></li>
            <li class="borderlfdadc">开放<span>API接口开放提供技术支持</span></li>
        </ul>
    </div>
@stop
@section('js')

    <script src="js/swiper.min.js"></script>
    <script>
        var swiper = new Swiper('.swiper-service_pro', {
            pagination: '.swiper-pagination',
            nextButton: '.swiper-button-next',
            prevButton: '.swiper-button-prev',
            slidesPerView: 1,
            paginationClickable: true,
            spaceBetween: 30,
            loop: true
        });
    </script>
    <script type="text/javascript">
        $(function(){
            $('#service_pro-tit a').on('click',function(){
                if($(this).hasClass('select')){
                    return false;
                }
                $(this).parent().addClass('select');
                $(this).parent().siblings().removeClass('select');
                __TA = '.'+$(this).data('title');
                $(__TA).show();
                $(__TA).siblings().hide();
                console.log(__TA);
            })
        })
    </script>
@stop